package com.syzsn.sk8.repository;

import com.syzsn.sk8.entity.SySK8WorldCup;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface SySK8WorldCupRepository extends JpaRepository<SySK8WorldCup, String> {

    @Query(value = "select * from SY_SK8_WORLDCUP where WC_YEAR=?1 and WC_NUM=?2", nativeQuery = true)
    SySK8WorldCup findOneByYearAndNum(int year, int num);
}
